﻿using Abp.Application.Services;
using Abp.Application.Services.Dto;
using Abp.Domain.Repositories;
using Abp.ObjectMapping;
using CPPProject.CPP.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPProject.CPP
{
    class CPPPartBinAppService: AsyncCrudAppService<CPPPartBin, CPPPartBinDto, long, PagedResultRequestDto, CreateCPPPartBinDto, UpdateCPPPartBinDto>
    {
        private readonly IObjectMapper _objectMapper;
        public CPPPartBinAppService(
            IRepository<CPPPartBin, long> repository,
            IObjectMapper objectMapper) : base(repository)
        {
            _objectMapper = objectMapper;
        }



        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="ids">guid数组</param>
        /// <returns></returns>
        public async Task BatchDelete(long[] ids)
        {
            await Repository.DeleteAsync(o => ids.Contains(o.Id));
        }
    }
}
